﻿using FMStudio.Templates.DesignTool.Application.Properties;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FMStudio.Templates.DesignTool.Application.Models
{
    public class WizardItem : ToolboxItem
    {
        #region Fields
        private string assemblyName;
        private string className;        
        #endregion

        public WizardItem()
            : base(Resources.Wizard)
        {
        }

        #region Properties
        [Required]
        public string AssemblyName
        {
            get { return this.assemblyName; }
            set
            {
                if (this.assemblyName != value)
                {
                    this.assemblyName = value;
                    RaisePropertyChanged("AssemblyName");
                }
            }
        }

        [Required]
        public string ClassName
        {
            get { return this.className; }
            set
            {
                if (this.className != value)
                {
                    this.className = value;
                    RaisePropertyChanged("ClassName");
                }
            }
        }
        #endregion
    }
}
